package com.groupbuying.redpacket.dto;

import com.groupbuying.redpacket.bo.RedPacketListBO;
import com.groupbuying.redpacket.domain.RedPacketListDO;
import com.groupbuying.redpacket.utils.DateUtils;

import java.io.Serializable;

/**
 * @ClassName RedPacketActivityDTO
 * @Description: TODO   红包信息传输类
 * @Author srlg3
 * @Date 2019/11/26
 * @Version V1.0
 **/
public class RedPacketInfoTransferDTO implements Serializable {

    /**中奖编号*/
    private String winnersUuid;

    /**会员手机号*/
    private String consumerName;

    /**活动编号*/
    private String activityNo;

    /**活动名称*/
    private String activityName;

    /**奖金*/
    private String bonus;

    /**奖金uuid*/
    private String bonusUuid;

    /**时间*/
    private String createopetime;

    /**时间*/
    private String opetime;

    /**中奖主题*/
    private String activityTheme;

    /**中奖轮次*/
    private String timesOfActivity;

    public RedPacketInfoTransferDTO() {
    }

    public RedPacketInfoTransferDTO(RedPacketListDO redPacketListDO, RedPacketListBO redPacketListBO ,String activityName,String activityTheme,String timesOfActivity) {
        this.winnersUuid = redPacketListDO.getUserId();
        this.consumerName = redPacketListDO.getPhone();
        this.activityNo = redPacketListBO.getPlatFrom();
        this.activityName = activityName;
        this.bonus = redPacketListBO.getRedPacketAmount().toString();
        this.bonusUuid = redPacketListBO.getId().toString();
        this.createopetime = DateUtils.format(redPacketListDO.getWinningTime(),DateUtils.YMDHMS);
        this.opetime = DateUtils.format(redPacketListDO.getWinningTime(),DateUtils.YMDHMS);
        this.activityTheme = activityTheme;
        this.timesOfActivity = timesOfActivity;
    }

    public RedPacketInfoTransferDTO(String winnersUuid, String consumerName, String activityNo, String activityName, String bonus, String bonusUuid, String createopetime, String opetime) {
        this.winnersUuid = winnersUuid;
        this.consumerName = consumerName;
        this.activityNo = activityNo;
        this.activityName = activityName;
        this.bonus = bonus;
        this.bonusUuid = bonusUuid;
        this.createopetime = createopetime;
        this.opetime = opetime;
    }

    public String getWinnersUuid() {
        return winnersUuid;
    }

    public void setWinnersUuid(String winnersUuid) {
        this.winnersUuid = winnersUuid;
    }

    public String getConsumerName() {
        return consumerName;
    }

    public void setConsumerName(String consumerName) {
        this.consumerName = consumerName;
    }

    public String getActivityNo() {
        return activityNo;
    }

    public void setActivityNo(String activityNo) {
        this.activityNo = activityNo;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getBonus() {
        return bonus;
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    public String getBonusUuid() {
        return bonusUuid;
    }

    public void setBonusUuid(String bonusUuid) {
        this.bonusUuid = bonusUuid;
    }

    public String getCreateopetime() {
        return createopetime;
    }

    public void setCreateopetime(String createopetime) {
        this.createopetime = createopetime;
    }

    public String getOpetime() {
        return opetime;
    }

    public void setOpetime(String opetime) {
        this.opetime = opetime;
    }

    public String getActivityTheme() {
        return activityTheme;
    }

    public void setActivityTheme(String activityTheme) {
        this.activityTheme = activityTheme;
    }

    public String getTimesOfActivity() {
        return timesOfActivity;
    }

    public void setTimesOfActivity(String timesOfActivity) {
        this.timesOfActivity = timesOfActivity;
    }

    @Override
    public String toString() {
        return "RedPacketInfoTransferDTO{" +
                "winnersUuid='" + winnersUuid + '\'' +
                ", consumerName='" + consumerName + '\'' +
                ", activityNo='" + activityNo + '\'' +
                ", activityName='" + activityName + '\'' +
                ", bonus='" + bonus + '\'' +
                ", bonusUuid='" + bonusUuid + '\'' +
                ", createopetime='" + createopetime + '\'' +
                ", opetime='" + opetime + '\'' +
                ", activityTheme='" + activityTheme + '\'' +
                ", timesOfActivity='" + timesOfActivity + '\'' +
                '}';
    }
}
